# 安装 request
# pip install requests

# 国内源
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests

import requests

query=input("输入一个你喜欢的明星：")
url=f'https://www.sogou.com/web?query={query}'
headers ={
   "User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0"
}
resp = requests.get(url,headers = headers)
resp.encoding="utf-8"
print(resp.text)